import types from '../../consts/actionTypes';

const setSwitchType = switchType => ({ type: types.editor.SET_SWITCH_TYPE, payload: switchType });
const setState = state => ({ type: types.editor.SET_STATE, payload: state });
const saveEditorType = editorType => ({ type: types.editor.SAVE_EDITOR_TYPE, payload: editorType });
const createTemplate = resourceId => ({ type: types.editor.CREATE_TEMPLATE, payload: resourceId });

export default {
    setSwitchType,
    setState,
    saveEditorType,
    createTemplate,
};
